from fastapi import APIRouter

from common.result import Success, Fail

from app.admin.service.server import ServerService

router = APIRouter()

@router.get("/monitor", summary="获取监控信息")
async def get_monitor_info():
    monitor_info = await ServerService.get_server_monitor_info()
    return Success(data=monitor_info.to_dict())